/**
 * Created by Administrator on 2017/9/30.
 */

$(document).ready(function () {


    var jdTpl = $('#jd-template').html();
    var jdCmp = Handlebars.compile(jdTpl);
    
    (function () {
        $.ajax({
            url:C.interface.jdOrder,
            type:'get',
            dataType:'json',
            data:{
                token:C.token
            },
            success:function (response) {
                if (response.result === 'success'){
                    var data = response.data;
                    console.log(data);
                    $('#shop-info').append(jdCmp(data));
                }
            }
        })
    })()

});